﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    Utileria util=new Utileria();
    protected void Page_Load(object sender, EventArgs e)
    {
        
        if (Request.Cookies["Pruebas"] != null)
        {


            //Label1.Text = "Bienvenido:   " + decodif_cadena(Request.Cookies["CKCF"]["ID"].ToString());
            if (util.decodif_cadena(Request.Cookies["Pruebas"]["Tipo"]) == "USUARIOS")
            {
                Response.Redirect("ModuloUsuarios.aspx");

            }
            else if (util.decodif_cadena(Request.Cookies["Pruebas"]["Tipo"]) == "PRUEBAS")
            {

                Response.Redirect("Pruebas.aspx");
                //PAGINA DE MARIO

            }
            else if (util.decodif_cadena(Request.Cookies["Pruebas"]["Tipo"]) == "CONSULTAR")
            {
                //Response.Redirect("MC.aspx");
            }
        }
        else
        {
            FormsAuthentication.SignOut();
            Response.Redirect("login.aspx");
        }
    }
}
